﻿using PMS.Web.Framework.Models;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace PMS.Web.Models.Customers
{
    public partial class PasswordRecoveryModel : BaseEntityModel
    {
        [DataType(DataType.EmailAddress)]
        [DisplayName("请输入您的注册邮箱")]
        public string Email { get; set; }

        [DataType(DataType.PhoneNumber)]
        [DisplayName("请输入您的注册手机号")]
        public string Mobile { get; set; }
        
        /// <summary>
        /// use Email as Password Recover Method if True
        /// otherwise us Mobile for Passwor Recover
        /// </summary>
        public bool RecoverByEmail { get; set; }
        /// <summary>
        /// 当使用手机号做为找回密码方式时，需要使用短信验证码服务
        /// </summary>
        [DisplayName("请输入短信验证码")]
        public string SMSCode { get; set; }

        public bool DisplayCaptcha { get; set; }
        
        public string EncryptCaptcha { get; set; }
        [DisplayName("请输入图形验证码")]
        public string CaptchaAnswer { get; set; }
    }
}
